package com.zoshine.zzg.dao;

import com.zoshine.zzg.pojo.table.base.Column;
import com.zoshine.zzg.pojo.table.base.Table;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 表结构初始化Dao
 * @author 贾俊峰
 * @time 2017/8/10 14:43
 */
@Repository
public interface InitDao {
    /**
     * 查询表是否存在
     */
    boolean hasTable(String tableName);

    void createTable(Table table);

    void dropTable(Table table);

    void alterTableComment(Table table);

    void alterColumnComment(@Param("tableName") String tableName,@Param("column") Column column);

    void truncateTable(@Param("tableName") String tableName);
}
